﻿using System;

namespace HslCommunication.Core
{
	/// <summary>
	/// 常规的字节转换类<br />
	/// Regular byte conversion class
	/// </summary>
	// Token: 0x02000126 RID: 294
	public class RegularByteTransform : ByteTransformBase
	{
		/// <inheritdoc cref="M:HslCommunication.Core.ByteTransformBase.#ctor" />
		// Token: 0x06001932 RID: 6450 RVA: 0x0007F216 File Offset: 0x0007D416
		public RegularByteTransform()
		{
		}

		/// <inheritdoc cref="M:HslCommunication.Core.ByteTransformBase.#ctor(HslCommunication.Core.DataFormat)" />
		// Token: 0x06001933 RID: 6451 RVA: 0x0007F220 File Offset: 0x0007D420
		public RegularByteTransform(DataFormat dataFormat) : base(dataFormat)
		{
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IByteTransform.CreateByDateFormat(HslCommunication.Core.DataFormat)" />
		// Token: 0x06001934 RID: 6452 RVA: 0x0007F22B File Offset: 0x0007D42B
		public override IByteTransform CreateByDateFormat(DataFormat dataFormat)
		{
			return new RegularByteTransform(dataFormat)
			{
				IsStringReverseByteWord = base.IsStringReverseByteWord
			};
		}

		/// <inheritdoc />
		// Token: 0x06001935 RID: 6453 RVA: 0x0007F240 File Offset: 0x0007D440
		public override string ToString()
		{
			return string.Format("RegularByteTransform[{0}]", base.DataFormat);
		}
	}
}
